﻿

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using GeneratorLib;
using GeneratorLib.DB;
using GeneratorLib.DB.Connectios;
using GeneratorLib.DB.Schemas;

namespace Generator
{
    public class DynamicClass
    {

        public IConnection Connection { get; private set; }
        public TableInfo Table { get; private set; }
        public TableHost TableHost { get; private set; }

        public void SetTableInfo(TableInfo table)
        {
            this.Table = table;
            this.Connection = table.Connection;
            this.TableHost = new TableHost();
            this.TableHost.SetTableInfo(table);
        }

        public string MethodInstance()
        {
            StringBuilder codeBuilder = new StringBuilder();
            
            return codeBuilder.ToString();
        }
    }
}